package com.ruoyi.lm.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.lm.domain.LmUserwithdraw;
import com.ruoyi.lm.service.ILmUserwithdrawService;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 用户提现记录Controller
 * 
 * @author ruoyi
 * @date 2020-09-02
 */
@Controller
@RequestMapping("/phone/lm/userwithdraw")
public class LmUserwithdrawControllerPhone extends BaseController
{

    @Autowired
    private ILmUserwithdrawService lmUserwithdrawService;

    /**
     * 查询用户提成记录列表
     */
    @PostMapping("/list")
    @ResponseBody
    public TableDataInfo list(LmUserwithdraw lmUserwithdraw)
    {
        startPage();
        List<LmUserwithdraw> list = lmUserwithdrawService.selectLmUserwithdrawList(lmUserwithdraw);
        return getDataTable(list);
    }


}
